﻿<%@ Page Language="C#" MasterPageFile="HomePage.master" AutoEventWireup="true" CodeFile="Bai-viet.aspx.cs"
    Inherits="Bai_viet" %>

<%@ Register TagPrefix="cc1" Namespace="CutePager" Assembly="PagerControl" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>Bài viết hay -
        <%=Common.home %></title>
    <link href="CSS/style-tintuc.css" rel="stylesheet" type="text/css" />
    <link href="CSS/style-chitietdd.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="container">
        <div class="gioi-thieu">
            <div class="container-fluid">
                <div class="span8">
                    <div class="tieude-km">
                        <asp:HyperLink runat="server" ID="linkHome" NavigateUrl="~/"><span class="icon-home icon-white"></span></asp:HyperLink>
                        Bài viết hay <span class="icon-arrow-right icon-white"></span>
                        <asp:Label runat="server" ID="lbSubtin" Visible="False"></asp:Label>
                    </div>
                    <!-- 10 bai viet / 1 page -->
                    <asp:UpdatePanel runat="server" ID="updatePanel1" UpdateMode="Conditional">
                        <ContentTemplate>
                            <asp:DataList runat="server" ID="dlTinKhuyenMai" RepeatLayout="Flow" RepeatDirection="Vertical">
                                <ItemTemplate>
                                    <div class="tintuc-km">
                                        <div class="tintuc-km-element">
                                            <div class="content-km">
                                                <div class="tieude-bvh">
                                                    <h1>
                                                        <asp:HyperLink runat="server" ID="HyperLink1" NavigateUrl='<%# "~/" + Eval("Id") + "_" + GetTieuDe(Eval("TieuDe")) + "_baiviet.aspx" %>'>
                                                        <%#Eval("TieuDe") %>
                                                        </asp:HyperLink>
                                                    </h1>
                                                </div>
                                                <div class="info-bvh">
                                                    <p class="thoigian-km">
                                                        <span class="icon-calendar"></span>
                                                        <%#Eval("NgayCapNhat") %>
                                                        <span class="icon-eye-open"></span>
                                                        <%#Eval("LuotXem") %>
                                                    </p>
                                                </div>
                                                <div class="img-bvh">
                                                    <asp:Image runat="server" ID="imgKm" ImageUrl='<%# Common.sPathUpTinTuc + "/" + Eval("AnhDaiDien")%>' />
                                                </div>
                                                <div class="body-bvh">
                                                    <p class="tomtat">
                                                        <%# formatString(Server.HtmlDecode(Eval("TomTat").ToString()), 120) %>
                                                    </p>
                                                    <p class="xem-them">
                                                        <asp:HyperLink runat="server" CssClass="btn btn-success" ID="linkChitiet" NavigateUrl='<%# "~/" + Eval("Id") + "_" + GetTieuDe(Eval("TieuDe")) + "_baiviet.aspx" %>'>Xem thêm</asp:HyperLink>
                                                    </p>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </ItemTemplate>
                            </asp:DataList>
                            <div class="phantrang pagination pagination-mini pagination-right pagination-small pull-right">
                                <cc1:Pager ID="Pager1" runat="server" PreviousClause="Lùi" NextClause="Tiếp" LastClause="Cuối"
                                    FirstClause="Đầu" PageClause="<html><b>Trang </b></html>" ShowResultClause="Hiển thị từ"
                                    ShowingResultClause="Đang hiển thị từ" BackToPageClause="Quay lại trang" OfClause=" / "
                                    PageSize="5" OnCommand="Pager1_Command" ForeColor="#CC0000" Font-Bold="True" />
                            </div>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    <!-- 10 bai viet / 1 page -->
                </div>
                <div class="span3">
                    <div class="theloai-khuyenmai">
                        <div class="tieude-danhmuc">
                            <p>
                                <span class="icon-file icon-white"></span>Thể loại</p>
                        </div>
                        <ul>
                            <asp:DataList runat="server" ID="dlSubtintuc" RepeatColumns="1" RepeatDirection="Vertical">
                                <ItemTemplate>
                                    <li>
                                        <asp:HyperLink runat="server" ID="linkSubtintuc" NavigateUrl='<%# "~/" + Eval("Id") + "_" + GetTieuDe(Eval("TenSubTinTuc")) + "_baiviethay.aspx"  %>'><%#Eval("TenSubTinTuc") %></asp:HyperLink></li>
                                </ItemTemplate>
                            </asp:DataList>
                        </ul>
                    </div>
                    <div class="quang-cao-right">
                        <dx:QuangcaoRight runat="server" ID="quangcao" />
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
